import request from '@/router/axios';

export const getList = (params) => {
  return request({
    url: '/api/order/orderList',
    method: 'get',
    params: {
      ...params,
    }
  })
}


export const getDetail = (row) => {
  return request({
    url: '/api/orderDetail/update',
    method: 'post',
   data:row
  })
}

export const falseMessage= () => {
  return request({
    url: '/api/blade-orderInputError/orderInputError/outputError',
    method: 'get',
  })
}

export const getUpdate = (row) => {
  return request({
    url: '/api/order/update',
    method: 'post',
   data:row
  })
}
export const getToUpdate = (row) => {
  return request({
    url: '/api/orderDetail/updateByIds',
    method: 'post',
   data:row
  })
}
export const isAll= (params) => {
  return request({
    url: '/api/orderDetail/listAll',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/order/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

